package SupermarketManageSystem;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class SystemManage {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Method m = new Method();
        while (true) {
            System.out.println("-----欢迎使用超市管理系统-----");
            System.out.println("1、会员账户开卡");
            System.out.println("2、会员账户登录");
            System.out.println("3、退出");
            System.out.println("请您选择操作：");
            int choice = sc.nextInt();
            switch (choice) {
                case 1:
                    m.register();
                    break;
                case 2:
                    m.login();
                    break;
                case 3:
                    System.out.println("退出系统成功，欢迎再次使用！");
                    return;
                default:
                    System.out.println("您输入操作命令有误！");
            }
        }
    }
}
